package cmo.stu.astart;
import org.apache.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@SpringBootApplication
@MapperScan(basePackages="com.stu.mapping")
public class Stustart {

	public static void main(String[] args) {
		SpringApplication.run(Stustart.class, args);
	}
	
	@GetMapping("one")
	@ResponseBody
	public String fun() {
		return "<h1>have good fun!</h1>";
	}
}

